Verify chromadb connection by checking openapi title.#241
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #241 +/- ##
=======================================
Coverage 99.76% 99.76%
=======================================
Files 24 24
Lines 1732 1737 +5
=======================================
+ Hits 1728 1733 +5
Misses 4 4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e6b4b24 to
b2e8c26
Compare
|
This breaks interoperation with standalone ChromaDB v0.6.3, which is the recommended setup in the docs:
This breaks because ChromaDB v0.6.3 doesn't have which fails the check because |
|
@broken-wheel Thanks for spotting this. I was able to reproduce the issue with 0.6.2, but from my side 0.6.3 worked fine: I'll think about how to better detect the server version. |
How did you launch the chormaDB server v0.6.3? This is what I did: docker run --rm -d -v ./data/chromadb:/data -p 9999:8000 chromadb/chroma:0.6.3and this is what I get: $ curl localhost:9999/openapi.json
{"error":"PackageNotFoundError('chromadb')"} |
Turns out this is the problem. I installed Chromadb with |
The same problem. It looks like VectorCode needs to add support for a newer Chromadb version. Until then, there is no way to work with a Docker container. |
Yep, the problem is the newer (1.0.x) chromadb server doesn't work on database files created by 0.6.x I really don't want to force people to re-vectorise every repo. I'll keep an eye on this. |
I got the same problem, with similar way to run chromadb. |
Fix #240